﻿#ifndef APPSETTINGDIALOG_H
#define APPSETTINGDIALOG_H

#include <QDialog>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QNetworkAccessManager>
#include <QNetworkProxy>

namespace Ui {
class AppSettingDialog;
}

class AppSettingDialog : public QDialog
{
    Q_OBJECT

public:
    explicit AppSettingDialog(QWidget *parent = nullptr);
    ~AppSettingDialog();

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_4_clicked();
    void testServerResult(bool,QString);
    void bindCloudAccountResult(bool,QString);
    void autoLockSpinBoxValueChanged(int);

private:
    Ui::AppSettingDialog *ui;

    void initStyle();
    void bindingAccount(QString &s);
    void initNetworkSetting();

 signals:
    void startSyncTask();
    void regUserHttpError(QString);
};

#endif // APPSETTINGDIALOG_H
